<?php
/**
 * 这里是登录操作
 * 
 * @author jerry
 * @version $Id$
 * @package model
 *
 */

class Index extends Controller  
{
	/**
	 * 解析函数
	 *
	 */
	function __construct()
	{
		parent::__construct();
		$this->loadModel('index_model');
		
		$category_list = $this->index_model->category_list;
		$area_list = $this->index_model->area_list;
		
		$this->tpl->assign("CategoryList", $category_list);
		$this->tpl->assign("AreaList", $area_list);
	}
	
	function main()
	{
		
		$tuiJian_list  = $this->index_model->getTuiJianList();
		$index_list    = $this->index_model->getIndexList();
		$hot_list    = $this->index_model->getHotList();
		
		$this->tpl->assign('TuiJianList',$tuiJian_list);
		$this->tpl->assign("IndexList", $index_list);
		$this->tpl->assign("HotList", $hot_list);

		$this->tpl->display('index.html');    //指定模板
	}
	
	
}